<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>示例6</title>
    <script src="jquery.js"></script>
    <script>
        function show(){
            $(".animationList>li:eq(0)").replaceWith("<li>accp</li>")

            // $("<li>html</li>").replaceAll(".animationList>li:eq(0)")
        }
    </script>
</head>
<body>
<h2>热门动画排行</h2>
    <button onclick="show()">替换</button>
    <ul class="animationList">
        <li>名侦探柯南</li>
        <li>阿拉蕾</li>
        <li>海贼王</li>
    </ul>
</body>
</html>